عمادة البحث العلمي جامعة الملك سعود

Similar documents
Introduction to Latex. A workshop by Dr. Ala Eshmawi

Presentation of Scientific Results

Introduction to LaTeX. Paul Fodor Stony Brook University

Workshop on LATEX 2ε. Asst. Prof. Dr. Kemal Bagzibagli Department of Economics. 20 May 2015

Introduzione a LaTex. Fabrizio Messina

L A TEX Overview. Jiayi Liu. January 31, Colorado School of Mines

Basic L A TEX. what is LaTeX?

Introduction to L A TEX

An Introduction to L A TEX

What is T E X? T E X and L A T E X Document preparation tools. Setting and casting type. What Knuth was setting. Setting and casting type

L A TEX From The Ground Up

Introduction to LaTeX. Christoph Pickl

Very Short Introduction to LaTeX

Researcher Development Unit: Introduction to Latex

Learning L A TEX. Patrick Lam

An introduction. C.D. Emmery & M.M. van Zaanen. October 22, Tilburg University

Useful L A TEX Commands

Intro to LATEX I. Aaron Erlich POLS/CSSS 510, Why LATEX? Programming Document Structure Floats Tables Lists Math

Introduction to L A TEX

L A TEXInstallation and Introduction

Using LaTex and BibTex to Write Academic Documents. Ligang He Department of Computer Science University of Warwick

Dec. 27 th, 2010 University of Isfahan

T E X and L A T E X Document preparation tools

L A TEX minicourse. dstowell, mag, sar, scannell,... September Typeset by FoilTEX

Latex Tutorial. CIS400 Senior Design 9/5/2013

LaTeX. Information Literacy II EN(IL2) Course

LAT E X week 2: Basics for Writing a Document

Mikkel Madsen

Introduction to. Research Seminar System Analysis. Florian Kragulj

L A T E X FOSSEE. Department of Aerospace Engineering IIT Bombay. FOSSEE (IIT Bombay) LAT E X 1 / 58

Introduction to L A TEX beamer

Formatting with LaTeX

Introduction to L A T E X

Mikkel Madsen

Lecture 3-Introduction to Latex (II)

Workshop: A Simple Introduction to L A TEX

Assessments for CS students:

Introduction to L A TEX

Introduction to L A TEX

L A T E X Workshop. Bijulal D & Anu Thomas Industrial Engineering and Operations Research Indian Institute of Technology

Research Method and Report Writing Lecture 4: An Introduction to L A TEX

Introduction to LaTex 2ε. Based on The Not So Short Introduction to LaTeX 2ε by Tobias Oetiker et al., April 2001

Scientific writing and bibliographic research

A brief introduction to L A TEX

An Introduction to. Andrew G. West, Jian Chang CIS400 Senior Design Tutorial September 15, 2009

PHYS-4007/5007: Computational Physics

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

How to get started in L A TEX

Helen Cameron. A Brief Overview of LATEX

L A TEX Tutorial. 1 Introduction. 2 Running L A TEX. J. E. Rice. May 2010

Using L A T E X for scientific writing

L A TEX Workshop. Don Brower

Introduction to LATEX

A quick guide to L A TEX

An Introduction to LATEX

L A TEX incollaboration

L A TEX Workshop. An Introduction to L A TEX. Rakesh Jana Research Scholar Department of Mathematics IIT Guwhati

Began as TeX, in 1982 (Knuth). Purely a typesetting tool. LaTeX added macros, maintaining TeX as it s typesetting engine (Lamport).

CS 189 L A TEX and Linux: Document Layout and Organization

LA T EX is a Document Preparation System which is useful for the preparation of all Abstract kinds of reports. It is particularly suited, but not limi

Part - I : Short Course Typing Text

A Beginner s guide to L A TEX for CSCA67/MATA67. Kohilan Mohanarajan

L A TEX 101. John Gardner and Alex Yuffa. May 2, How does L A TEX work? Exercise... 4

An Introduction to. Rado Ivanov CIS400 Senior Design Tutorial September 18, 2014

GROUP ASSIGNMENT. L A TEX Assignment 1/3

CS 189 L A TEX and Linux: Displaying Text

Document Preparation Word Processors

Basics. Options. Commands

VERY VERY SHORT GUIDE TO LATEX

Getting started with Latex

Latex Programs for Record

An Interactive Introduction to L A TEX. Part 2: Structured Documents & More. Dr John D. Lees-Miller. writel A TEX.

MATLAB for the Sciences

Introduction to L A TEX

L A TEX examples. a b c a b c b b a c b c c b a. This table was typeset with the following commands.

An Introduction to L A TEX

Student Learning Service: Introduction to Latex

What is LaTeX. Is a document markup language and document preparation system for the TeX typesetting program

An introduction to LATEX

Writing a Thesis with L A TEX

Introduction to L A TEX

Introduction to LaTeX. M&S Talk Series August 16 th, 2016 AH Sheikh

An Introduction to LATEX

The Name of the Game. An Introduction to LATEX. Why L A TEX? The Name of the Game

LaTeX. Information Literacy II EN(IL2) Course

A Quick L A TEX Primer

Literate programming with R and L A TEX

Helen Cameron. A Brief Overview of LATEX

Outline. A Sneak Peek

L A TEX for Psychological Researchers

A LAT E X Tutorial. Evangelos Milios. March 15, 2004

Introduction to LATEX

Lecture 1: Short summary of LaTeX basics

Forschungskolleg / ACSE Exercise 1 - LaTeX

COMS 6100 Class note

PRISM Introduction to L A TEX

Introduction to L A TEX

A Grasshopper s Approach to L A TEX

David Helmbold, October 2005, Revised October 2007

Academic Skills in Computer Science (ASiCS) II) Text Processing with Latex II.1) Introduction to Latex

Transcription:

عمادة البحث العلمي جامعة الملك سعود

Introduction to Latex A very quick look at typesetting documents Dr. Amal Almohisen (based on slides by Andrei Gurtov )

Introduction Essentially a Markup Language (like HTML and XML ) An extension to TeX system TeX written by Donald Knuth in 70 s

Latex vs. Word Processors High typeset quality Easy to include math formulas Source file format id not bounded to a particular OS or platform Latex implementations exists for all platforms (DOS, Windows, Unices,..) Latex is free

Latex vs. Word Processors De facto standard for scientific publishing Very few bugs Good for large documents Can run even on 386 PC Not very easy to learn

Download Without limitation, you can get LaTeX from https://miktex.org/ When the installation is completed, open new document of TeXworks

LaTeX File Structure Document Class Predefined Formats (article, report, book,..). Packages used Main Body Added Functionality (graphics, reference style,...). Text and Bibliography References.

The Basics Document Class Packages \documentclass[options]{class} options = a4paper, 11pt, 12pt, 10pt, twocolumn, landscape,... class = article, report, book,... \usepackage{package name} epsfig = insert PS pictures into the document fancyhdr = easy definition of footer and header

Body of Text Start with \begin{document} End with \end{document} Typesetting Text \\ or \newline and \newpage Quotations Bold \textbf{ } or \bf Italics \emph{ } or \textit{ } or \it Underline \underline{ } or \ul

Format Sections \section{ } \subsection{ } = 1. Latex is Great = 1.1 Why Latex is Great \subsubsection{ } = 1.1.1 Reason One \appendix - changes numbering scheme Titles, Authors and others \title{ } \footnote{ } \author{ }

Format Contd. \maketitle - Display Title and Author \tableofcontents - generates TOC \listoftables - generates LOT \listoffigures - generates LOF Labels \label{marker} - Marker in document. \pageref{marker} - Displays page no. of marker. \ref{marker} - Displays section location of marker. Itemise Use either enumerate, itemize or description.

Lists Source \begin{itemize} \item Apple \item Orange \end{itemize} Result Apple Orange

Lists Enumerate instead of itemize gives a numbered list Lists can be recursive

Environment Something between \begin{name} \end{name} Many command, for example \bf affect the text until the end of environment Can be recursive Examples: itemize, center, abstract

Group Text between { and } Many commands work until the end of the group Code put {one word \bf in bold} here Result put one word in bold here

Alignment Environments center, flushleft, flushright Example \begin{flushright} Right aligned \end{flushright} Result Right aligned

Font size \tiny \scriptsize \footnotesize \small \normalsize \large \Large \LARGE \huge \Huge

Example of Latex document \documentclass{article} \title{simple Example} \author{amal Almohisen} \date{25 Sep 2018} \begin{document} \maketitle Hello world! \end{document}

Tabular Two Columns Columns \begin{tabular}{ } \end{tabular} Rows & - Split text into columns \\ - End a row \hline - Draw line under row e.g. 123123 & 34.00\\ \hline l = automatically adjust size, left justify r = automatically adjust size, right justify p = set size e.g p{4.7cm} c = centre text

Example of table \begin{table} \begin{tabular}{ l r c } \hline Date & Price & Size \\ \hline Yesterday & 5 & big \\ \hline Today & 3 & small \\ \hline \end{tabular} \end{table}

Table You can use the following link to help you generate your tables in LaTeX in very easy way! http://www.tablesgenerator.com/

Floating Bodies Floating bodies can stop splitting of tables and images over pages. \begin{figure}[options] \begin{table}[options] Options (recommendations) h = place table here t = place at top of page b = place at bottom of page They will now appear in the LOF and LOT.

Example of floating figure To Allows including images: First add \usepackage{graphicx} in the basics, then in the body of the text write: \begin{figure}[ht] \centering\includegraphics[width=5 cm]{logo} \caption{king Saud University} \label{uni} \end{figure} Figure~\ref{uni} shows...

Bibliography by hand \begin{thebibliography}{} \bibitem{ross} S. Ross, {\it A first course in probability }. Prentice-Hall press, 2009. \end{thebibliography}

Bibliography using Bibtex Bibliography information is stored in a *.bib file, in Bibtex format. Include chicago package \usepackage{chicago} Set referencing style \bibliographystyle{chicago} Create reference section by \bibliography{bibfile with no extension}

Create (*.bib) file In TeXworks document, click on file then new then save as and choose a name for your database file eg. References and then save it as type BibTeX databases (*.bib)

Bibliography using Bibtex @book{ross, author= S. Ross, title={a first course in probability }, publisher= Prentice-Hall, year=2009, }

Bibliography contd. Citing references in text \cite{ross} = (Ross 2009) \citen{ross} = Ross (2009) \shortcite{robin} = (Robin, et. al. 1998)

Some Math \begin{center} {\large $$ y=\frac{a^3+2c_{x}}{1+\sqrt{b_{x}}} $$ \\ \vspace{0.2in} $$ Q=\sum_{i=1}^{j}\int_{\mu}^{\infty}f(x_{j}) dx $$ \\ \vspace{0.2in} $$ \Psi = \oint_{- \infty}^{\infty}f_{xy}({\frac{\partial Qx}{\partial Qy}})^{\Im_{\pi}^ \prime} $$ \\ }

Math contd. The following link provides all maths you might need in LaTeX https://www.latex-tutorial.com/tutorials/amsmath/ And see also, http://web.ift.uib.no/teori/kurs/wrk/tex/syma LL.html

Tools UNIX based systems xdvi, ghostview, fixps, emacs with latex/bibtex support. Windows Ghostview, Acrobat Distiller, Acrobat Reader, Scientific Workplace (not the best), the Bibtex viewer is good. Paint Shop Pro, Latex and Emacs

Conclusions Mathematical Formulae are easy. Consider converting Postscript files to PDF to conserve space. LaTeX help forum https://tex.stackexchange.com/